package org.compactmvc.demo.controller
{
	import org.compactmvc.patterns.Command;
	import org.compactmvc.patterns.Controller;
	import org.compactmvc.patterns.Model;
	import org.compactmvc.vo.NoteVO;
	
	import org.compactmvc.demo.model.MainViewModel;
	
	public final class SettingsLoadedCommand extends Command
	{
		public function SettingsLoadedCommand(controller:Controller)
		{
			super(controller);
		}
		
		override public function execute(note:NoteVO):void
		{
			trace("Settings Loaded");
			
			var viewModel:MainViewModel = retrieveModel(MainViewModel.NAME) as MainViewModel;
			viewModel.setupView();
		}
		
	}
}